// $Header: $

using System;
using System.Data;
using System.Collections.Generic;
using LogParser.Collections;

namespace LogParser.DA
{
    /// <summary>
    /// Summary description for LogParser.DA.CustomKillModel.
    /// </summary>
    public class CustomKillModel
    {
        #region Private Member Variables

        DA.DataObjects.CustomKillsDSTableAdapters.CustomKillsTableAdapter ckta;

        #endregion

        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomKillModel"/> class.
        /// </summary>
        public CustomKillModel( )
        {
            Initialize();
        }

        private void Initialize( )
        {
            ckta = TableAdapters.CustomKillsTableAdapter();
        }

        #endregion

        #region Public Properties

        #endregion

        #region Private Properties

        #endregion

        #region Public Member Functions

        public List<GameObjects.CustomKill> GetCustomKillList( )
        {
            List<GameObjects.CustomKill> returnList = new List<LogParser.GameObjects.CustomKill>();

            DA.DataObjects.CustomKillsDS.CustomKillsDataTable ckdt = ckta.GetData();

            foreach ( DA.DataObjects.CustomKillsDS.CustomKillsRow dr in ckdt.Rows )
            {
                GameObjects.CustomKill tempCustomKill = new LogParser.GameObjects.CustomKill();
                
                tempCustomKill.CustomKillID = dr.CustomKillId;
                tempCustomKill.LongName = dr.CustomKillFullName;
                tempCustomKill.ShortName = dr.CustomKillShortName;

                returnList.Add( tempCustomKill );
            }

            return returnList;
        }


        #endregion

        #region Private Member Functions

        #endregion
    }
}

#region VSS Log

/*
 * $Log: $
 */

#endregion VSS Log